# This code should be run with pypy.
s = set()
n = int(input())
buf = input()
for el in buf.split(' '):
  s.add(int(el))
# print(s)
for i in range(1, n+1):
  if not (i in s):
    print(i)
    break